package com.lx.patterns.responsibility;

/**
 * @ClassName GeneralManager
 * @Description: 总经理
 * @Author: 落雪
 * @CreateDate: 2025/2/11 20:35
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/2/11 20:35
 * @UpdateRemark:
 * @Version: 1.0
 */
public class GeneralManager extends Handler{

    public GeneralManager() {
        super(Handler.LEAVE_DAY_SEVEN);
    }
    @Override
    protected void handleLeave(LeaveRequest request) {
        System.out.println(request.getName() + "请假" + request.getDay() + "天," + request.getContent() + "。");
        System.out.println("总经理审批：同意。");
    }
}
